package org.jeecg.modules.demo.mes.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 溶剂管理
 * @Author: jeecg-boot
 * @Date:   2023-01-29
 * @Version: V1.0
 */
@Data
@TableName("camellia_mes_solvent")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="camellia_mes_solvent对象", description="溶剂管理")
public class CamelliaMesSolvent implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**溶剂名称*/
	@Excel(name = "溶剂名称", width = 15)
    @ApiModelProperty(value = "溶剂名称")
    private String name;
	/**类型*/
	@Excel(name = "类型", width = 15)
    @ApiModelProperty(value = "类型")
    private String type;
	/**批次*/
	@Excel(name = "批次", width = 15)
    @ApiModelProperty(value = "批次")
    private String batch;
	/**库存（L）*/
	@Excel(name = "库存（L）", width = 15)
    @ApiModelProperty(value = "库存（L）")
    private Double stock;
	/**is_enable*/
	@Excel(name = "is_enable", width = 15)
    private transient String isEnableString;

    private byte[] isEnable;

    public byte[] getIsEnable(){
        if(isEnableString==null){
            return null;
        }
        try {
            return isEnableString.getBytes("UTF-8");
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        return null;
    }

    public String getIsEnableString(){
        if(isEnable==null || isEnable.length==0){
            return "";
        }
        try {
            return new String(isEnable,"UTF-8");
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        return "";
    }
	/**沸点（℃）*/
	@Excel(name = "沸点（℃）", width = 15)
    @ApiModelProperty(value = "沸点（℃）")
    private Double boilingPoint;
	/**自燃点（℃）*/
	@Excel(name = "自燃点（℃）", width = 15)
    @ApiModelProperty(value = "自燃点（℃）")
    private Double ignitionPoint;
	/**气体密度（kg/m3）*/
	@Excel(name = "气体密度（kg/m3）", width = 15)
    @ApiModelProperty(value = "气体密度（kg/m3）")
    private Double gasDensity;
	/**临界温度（℃）*/
	@Excel(name = "临界温度（℃）", width = 15)
    @ApiModelProperty(value = "临界温度（℃）")
    private Double criticalTemp;
	/**临界压力（℃）*/
	@Excel(name = "临界压力（℃）", width = 15)
    @ApiModelProperty(value = "临界压力（℃）")
    private Double criticalPressure;
	/**临界密度（kg/m3）*/
	@Excel(name = "临界密度（kg/m3）", width = 15)
    @ApiModelProperty(value = "临界密度（kg/m3）")
    private Double criticalDensity;
}
